define(
	function (require, exports) {
		/**
		 * 页面加载完成时触发
		 * @param hashCode 路由ID
		 * @param data 传递数据对象
		 * @param cite 页面站点信息
		 */
		exports.ready = function (hashCode, data, cite) {
			yufp.custom.vue({
				el: cite.el,
				data: function () {

					var _this = this;
					/*定义校验规则，只能填字母数字 下划线*/
					var valiCodes = function (rule, value, callback) {
						var reg = /^[0-9a-zA-Z_]{1,}$/;
						if (value && reg.test(value)) {
							if(value.length > 64){
								callback(new Error('长度不能大于64位'));
							}else{
								callback();
							}
						} else if (value && !reg.test(value)) {
							callback(new Error('能填字母、数字和下划线'));
						} else {
							callback();
						}
					};
					return {
						tbHeight:'100%',
						searchFormdata: {},
						appNameDisabled: false,
						calendarNameDisabled: false,
						yearOption: [],
						addFnButton: !yufp.session.checkCtrl('addFn'),
						updateFnButton: !yufp.session.checkCtrl('updateFn'),
						deleteFnButton: !yufp.session.checkCtrl('deleteFn'),

						addClassFnButton: !yufp.session.checkCtrl('addClassFn'),
						updateClassFnButton: !yufp.session.checkCtrl('updateClassFn'),
						deleteClassFnButton: !yufp.session.checkCtrl('deleteClassFn'),

						setCalendarTypeButton: !yufp.session.checkCtrl('setCalendarType'),

						treeDataUrl: "api/use/plats/calendar/queryTreeList",
						dataUrl: 'api/use/plats/calendar/queryList',
						saveBtnShow: true,
						colorType: 'holidays', //设置标记日期的类型	String	weekdays, holidays, normal
						cancelBtnShow: true,
						addBtnShow: false,
						formdata: {},
						async: false,
						height: yufp.frame.size().height - 147,
						folderHeight: 300,
						dialogVisible: false,
						formDisabled: false,
						classCodeDisabled: false,
						currentClickNode: {},
						isClassaddFlag: false,
						classCodeReadOnly: false,
						chooseFolderDialogVisible: false,
						viewClassTitle: "",
						folderRoot: "",
						years: [],
						initCalendarType: [],
						selectYears: [],
						colorTypes: [],
						selectDayType: "",
						showDateMonths: [],
						signDatas: [],
						initType: "",
						selectYear: "",
						viewClassTitleArrry: ['新增日历', '修改日历'],
						classDialogVisible: false,
						calendarTypeVisible: false,
						calendarTypeDatas: [],
						isCalendarData: false,
						signData: {
							holidaysData: [],
							weekdaysData: []
						},
						appCodeShow: true,
						isDataAdd: false,
						yeaOprReadOnly: false,
						selectObj: {},
						isView: false,
						classFields: [{
							columnCount: 2,
							fields: [
								{
									field: 'appCode',
									label: '系统编号:',
									hidden: true
								},
								{
									field: 'appName',
									label: '系统名称:',
									disabled: true
								},
								{
									field: 'calendarCode',
									label: '日历编码:',
									maxlength:64,
									readOnly: false,
									rules: [
										{ validator: valiCodes, trigger: 'blur' }
									]
								},
								{
									field: 'calendarName',
									label: '日历名称:',
									maxlength:120,
									rules: [{ required: true, message: '必填项', trigger: 'blur' },
									{ max: 120, message: '输入值过长', trigger: 'blur' }]

								}


							]

						}, {
							columnCount: 1,
							fields: [
								{
									field: 'remark',
									label: '备注:',
									type: "textarea",
									maxlength:240,
									rows: 3,
									rules: [{ max: 256, message: '输入值过长', trigger: 'blur' }]
								}
							]
						}],


						classButtons: [
							{
								label: '取消', hidden: false, click: function (model) {
									_this.cancelClassFn();
								}
							},
							{
								label: '保存', type: 'primary', hidden: false, op: 'submit', click: function (model, valid) {
									_this.saveClassCodeFn();
								}
							}

						],
						tableColumns: [
							{ label: '编号', type: "index" },
							{ label: '系统缩写', prop: 'appName', hidden: false },
							{ label: '日历名称', prop: 'calendarName' },
							{
								label: '年份',
								prop: 'yearValue'
							},
							{
								label: '操作',
								prop: '',
								width: "200",
								template: function () {
									return '<template scope="scope">\
                                            <yu-button @click="modifyDataFn(scope.row)" type="info" size="small" >修改</yu-button> \
                                             <yu-button @click="viewDataFn(scope.row)"  size="small" type="danger" v-if="deleteFnButton" >删除</yu-button>\
                                     </template>';
								}
							}
						],

					};
				},
				mounted: function () {
					var _this = this;
					let currentYear = 2020;
					for (let i = 0; i < 20; i++) {
						this.yearOption.push({ key: currentYear + i, label: (currentYear + i) + "年", value: (currentYear + i) + "年" });
					}
					this.initYears();
					this.initCalendarTypeFn();
					_this.$nextTick(function(){
						var tableBox = _this.$refs.tableBox;
						let a = tableBox.getBoundingClientRect().top + 28;
						var theight = `calc(100vh - ${a}px - 64px)`;
						_this.tbHeight = theight;	
					});
				},
				methods: {

					viewDataFn: function (data) {
						var _this = this;
						_this.yeaOprReadOnly = true;
						_this.selectObj = data;
						/*if (_this.$refs.refTable.selections.length != 1) {
								_this.$message({ message: '请先选择一条记录', type: 'warning' });
								return;
						}*/
						_this.isView = true;
						_this.isCalendarData = true;

						_this.initCalendarData(data);
					},


					addDataFn: function () {

						var _this = this;
						_this.yeaOprReadOnly = false;
						_this.selectObj = {};
						_this.isView = false;
						var appCode = _this.currentClickNode.appCode;
						var calendarCode =  _this.currentClickNode.currentNodeId.substring(2 + appCode.length,_this.currentClickNode.currentNodeId.length);

						var paramObj = { appCode: appCode, calendarCode: calendarCode };
						yufp.service.request({
							method: 'GET',
							url: "api/use/plats/calendar/queryDatas",
							data: paramObj,
							callback: function (code, message, response) {
								if (response.code == 0) {
									_this.resetCalendar();
									_this.initYears(response.data);
									_this.signDatas.splice(0);
									_this.getCalendarType(paramObj.appCode);

									_this.isCalendarData = true;
									_this.$nextTick(function () {
										_this.defaultShowMonth();
									});

									/*  _this.$message( "操作成功");
										_this.signDatas.splice(0);
										for(let i=0;i<response.data.length;i++){
												_this.signDatas.push(response.data[i]);
										}*/
									// _this.calendarTypeVisible = false;
								} else {
									_this.$message(response.message);
								}
							}
						});


					},
					modifyDataFn: function (data) {

						var _this = this;
						_this.isView = false;
						_this.yeaOprReadOnly = true;
						_this.selectObj = data;
						/*if (_this.$refs.refTable.selections.length != 1) {
								_this.$message({ message: '请先选择一条记录', type: 'warning' });
								return;
						}*/
						_this.isCalendarData = true;

						_this.initCalendarData(data);
						/* _this.$nextTick(function (){

						 });*/

					},
					deleteDataFn: function (data) {
						this.deleteFn(data);
					},

					initYears: function (data) {
						if (this.years != null && this.years.length > 0)
							this.years.splice(0);
						let currentYear = 2020;
						this.selectYear = "";
						let isFirstData = null;
						for (let i = 0; i < 50; i++) {

							let isDisable = false;
							if (data != null)
								for (var j = 0; j < data.length; j++) {
									if (currentYear + i == data[j].yearValue) {
										isDisable = true;
									}
								}

							if (isFirstData == null && !isDisable) {
								isFirstData = currentYear + i;
							}

							this.years.push({ key: currentYear + i, label: (currentYear + i) + "年", value: currentYear + i, disabled: isDisable });
						}
						this.selectYear = isFirstData;
					},

					initCalendarData: function (data) {
						var _this = this;
						// _this.colorTypes.splice(0);
						_this.signDatas.splice(0);
						_this.selectDayType = "";
						_this.selectYear = "";
						_this.initType = "";

						var param = { appCode: data.appCode, calendarCode: data.calendarCode, yearValue: data.yearValue }

						yufp.service.request({
							method: 'GET',
							url: "api/use/plats/calendar/queryUseCalendarData",
							data: param,
							callback: function (code, message, response) {
								if (response.code == 0 && response.data != null) {
									_this.selectYear = response.data.year;
									_this.defaultShowMonth();
									_this.getCalendarType(data.appCode);
									_this.$nextTick(function () {

										if (response.data != null && response.data.useCalendarDatas != null) {


											for (let i = 0; i < response.data.useCalendarDatas.length; i++) {
												_this.signDatas.push(response.data.useCalendarDatas[i]);
											}
										}

									});

								} else {
									_this.defaultShowMonth();
								}
							}
						});

					},


					/**
					 * 删除
					 */
					deleteFn: function (data) {
						var _this = this;
						/*var selections = _this.$refs.refTable.selections;
						if (selections.length !=1) {
								_this.$message({ message: '请先选择一条记录', type: 'warning' });
								return;
						}*/

						var param = { appCode: data.appCode, calendarCode: data.calendarCode, yearValue: data.yearValue }
						_this.$confirm('此操作将永久删除该记录, 是否继续?', '提示', {
							confirmButtonText: '确定',
							cancelButtonText: '取消',
							type: 'warning',
							duration:6000,
							center: true,
							callback: function (action) {
								if (action === 'confirm') {
									yufp.service.request({
										method: 'DELETE',
										url: "api/use/plats/calendar/deleteCalendarData",
										data: param,
										callback: function (code, message, response) {
											if (response.code != 0) {
												_this.$message({ message: response.message, type: "warnings" });
											} else {
												_this.showDataList();
												_this.$message("操作成功");

											}

										}
									});
								}
							}
						});
					},


					initCalendarTypeFn: function () {
						this.initCalendarType.splice(0);
						this.initCalendarType.push({ key: "0", label: "周六、日休息" });
						this.initCalendarType.push({ key: "1", label: "仅周日休息" });
						this.initCalendarType.push({ key: "2", label: "全为工作日" });
						this.initCalendarType.push({ key: "3", label: "旬初" });
						this.initCalendarType.push({ key: "4", label: "月初" });
						this.initCalendarType.push({ key: "5", label: "月末" });
						this.initCalendarType.push({ key: "6", label: "季初" });
						this.initCalendarType.push({ key: "7", label: "季末" });
						this.initCalendarType.push({ key: "8", label: "年初" });
					},



					createTreeFn: function () {
						var _this = this;
						if (_this.currentClickNode == null
							|| _this.currentClickNode.nodeType == null
							|| _this.currentClickNode.nodeType != 'A') {
							_this.$message({ message: "请选择一个应用系统", type: "warning" });
							return;
						}
						_this.classDialogVisible = true;
						_this.viewClassTitle = _this.viewClassTitleArrry[0];
						_this.$set(_this.classFields[0].fields[2], 'readonly', false);
						_this.isClassaddFlag = true;
						_this.$nextTick(function () {
							_this.$refs.refClassForm.resetFields();
							_this.$refs.refClassForm.formModel.appCode = _this.currentClickNode.appCode ;
							_this.$refs.refClassForm.formModel.appName = _this.currentClickNode.appName;
						});

					},
					cancelClassFn: function () {
						var _this = this;
						this.classDialogVisible = false;
					},



					saveClassCodeFn: function () {

						var _this = this;
						var validate = false;
						_this.$refs.refClassForm.validate(function (valid) {
							validate = valid;
						});
						if (!validate) {
							return;
						}

						let urlparam = "";

						if (_this.isClassaddFlag) {
							urlparam = 'api/use/plats/calendar/addUseCalendarInfo';
						} else {
							urlparam = 'api/use/plats/calendar/updateUseCalendarInfo';
						}

						yufp.service.request({
							method: 'POST',
							url: urlparam,
							data: _this.$refs.refClassForm.formModel,
							callback: function (code, message, response) {

								if (response.code == 0) {
									_this.$message('操作成功');
									_this.classDialogVisible = false;
									_this.$refs.refTree.remoteData({});
								} else {
									_this.$message(response.message);
								}
							}
						});

					},


					updateTreeFn: function () {
						var _this = this;

						if (_this.currentClickNode.nodeType == null ||
							_this.currentClickNode.nodeType != 'D') {
							_this.$message({ message: "请选择一个日历", type: "warning" });
							return;
						}

						_this.classDialogVisible = true;
						_this.viewClassTitle = _this.viewClassTitleArrry[1];
						_this.isClassaddFlag = false;
						_this.classCodeReadOnly = true;
						_this.$set(_this.classFields[0].fields[2], 'readonly', true);
						_this.$nextTick(function () {
							_this.$refs.refClassForm.resetFields();
							var app = _this.currentClickNode.appCode;
							_this.$refs.refClassForm.formModel.appCode = app;
							_this.$refs.refClassForm.formModel.appName = _this.currentClickNode.appName;
							_this.$refs.refClassForm.formModel.calendarCode = _this.currentClickNode.currentNodeId.substring(2+app.length,_this.currentClickNode.currentNodeId.length);
							_this.$refs.refClassForm.formModel.calendarName = _this.currentClickNode.currentNodeName;
							_this.$refs.refClassForm.formModel.remark = _this.currentClickNode.remark;
						});

					},

					deleteTreeFn: function () {
						var _this = this;

						if (_this.currentClickNode.nodeType == null ||
							_this.currentClickNode.nodeType != 'D') {
							_this.$message({ message: "请选择一个日历", type: "warning" });
							return;
						}
						_this.$confirm('此操作将永久删除该记录, 是否继续?', '提示', {
							confirmButtonText: '确定',
							cancelButtonText: '取消',
							type: 'warning',
							duration:6000,
							center: true,
							callback: function (action) {
								if (action === 'confirm') {
									let paramObj = {};
								 var app = _this.currentClickNode.appCode;
									paramObj.appCode = app;
									paramObj.calendarCode = _this.currentClickNode.currentNodeId.substring(2+app.length,_this.currentClickNode.currentNodeId.length );
									paramObj.calendarName = _this.currentClickNode.currentNodeName;

									yufp.service.request({
										method: 'DELETE',
										url: "api/use/plats/calendar/deleteUseCalendarInfo",
										data: paramObj,
										callback: function (code, message, response) {
											if (response.code != 0) {
												_this.$message({ message: response.message, type: "warning" });
											} else {
												_this.$message('操作成功');
												_this.$refs.refTree.remoteData({});
												var paramObject = {};

												paramObject.appCode = _this.currentClickNode;

												_this.$refs.refTable.remoteData({ condition: paramObject });
											}

										}
									});
								}
							}
						});
					},

					getCalendarType: function (appCode) {
						var _this = this;
						if (appCode == null || appCode === '') {

						} else {
							_this.calendarTypeDatas.splice(0);

							var paramObj = {};
							paramObj.appCode = appCode;

							yufp.service.request({
								method: 'GET',
								url: "api/use/plats/calendar/queryUseCalendarTypeList",
								data: paramObj,
								async: false,
								callback: function (code, message, response) {
									if (response.code != 0) {
										_this.$message(response.message);
									} else {
										_this.colorTypes.splice(0);
										_this.calendarTypeDatas.splice(0);
										for (let i = 0; i < response.data.length; i++) {
											_this.colorTypes.push({ type: response.data[i].typeCode, color: response.data[i].typeColor })
											response.data[i].backColor = "background-color:" + response.data[i].typeColor;

											_this.calendarTypeDatas.push(response.data[i]);
										}
									}

								}
							});
						}
					},

					setCalendarType: function () {
						var _this = this;
						if (_this.currentClickNode == null
							|| _this.currentClickNode.nodeType == null
							|| _this.currentClickNode.nodeType != 'A') {
							_this.$message({ message: "请选择一个应用系统", type: "warning" });
							return;
						}
						_this.calendarTypeVisible = true;
						_this.$nextTick(function () {
							_this.getCalendarType(_this.currentClickNode.appCode);

						});


					},

					addCalendarType: function () {
						var _this = this;

						if (_this.calendarTypeDatas.length >= 10) {
							_this.$message({ message: "最多只能填写10种类型", type: "warning" });
							return;
						}

						var obj = {};
						obj.appCode = _this.currentClickNode.appCode;
						obj.typeCode = "";
						obj.typeName = "";
						obj.typeColor = "#F8F8F8";
						obj.remark = "";
						//obj.typeCode = "";
						_this.calendarTypeDatas.push(obj);
					},
					deleteCalendarType: function () {

						var _this = this;
						let selectDatas = _this.$refs.refCalendarTypeTab.selections;

						for (let jdx = _this.calendarTypeDatas.length - 1; jdx >= 0; jdx--) {
							for (let idx = 0; selectDatas.length > idx; idx++) {
								if (_this.calendarTypeDatas[jdx] == selectDatas[idx]) {
									if (_this.calendarTypeDatas[jdx].typeCode != '0' &&
										_this.calendarTypeDatas[jdx].typeCode != '1') {
										this.calendarTypeDatas.splice(jdx, 1);
									}

									break;
								}
							}

						}

					},

					/**
					 * 取消
					 */
					cancelFn: function () {
						var _this = this;
						_this.dialogVisible = false;
						_this.calendarTypeVisible = false;
					},

					saveCalendarTypeFn: function () {
						var _this = this;
						var currentColors = [];
						for (let i = 0; i < _this.calendarTypeDatas.length; i++) {
							if (_this.calendarTypeDatas[i].typeName == null || _this.calendarTypeDatas[i].typeName == "") {
								_this.$message({ message: "类型名字不能为空", type: "warning" })
								return;
							} else {
								if (_this.calendarTypeDatas[i].typeColor == null || _this.calendarTypeDatas[i].typeColor === '') {
									_this.$message({ message: "颜色类型不能为空", type: "warning" });
									return;
								} else {
									for (let j = 0; j < currentColors.length; j++) {
										if (currentColors[j] === _this.calendarTypeDatas[i].typeColor) {
											_this.$message({ message: "颜色类型不能重复", type: "warning" });
											return;
										}
									}
									currentColors.push(_this.calendarTypeDatas[i].typeColor);

								}
							}
						}

						var paramObj = {};
						paramObj.appCode = _this.currentClickNode.appCode;
						paramObj.useCalendarTypeList = _this.calendarTypeDatas;
						yufp.service.request({
							method: 'POST',
							url: "api/use/plats/calendar/addUseCalendarTypes",
							data: paramObj,
							callback: function (code, message, response) {
								if (response.code == 0) {
									_this.$message("操作成功");
									_this.calendarTypeVisible = false;
								} else {
									_this.$message(response.message);
								}
							}
						});


					},

					/**
					 * 控制保存按钮、xdialog、表单的状态
					 * @param viewType 表单类型
					 * @param editable 可编辑,默认false
					 */
					switchStatus: function (viewType, editable) {
						var _this = this;
						_this.viewType = viewType;
						_this.dialogVisible = true;
						_this.formDisabled = !editable;
						_this.saveBtnShow = editable;
						_this.cancelBtnShow = editable;
					},




					folderNodeClickFn: function (nodeData) {

						var checkObjects = this.$refs.refFolderTree.getCheckedNodes();
						for (var i = 0; i < checkObjects.length; i++) {
							if (nodeData.currentNodeId === checkObjects[i].currentNodeId) {
								continue;
							} else {
								this.$refs.refFolderTree.setChecked(checkObjects[i], false);
							}
						}

					},

					selectFolderSaveFn: function () {
						var _this = this;
						var checkObjects = this.$refs.refFolderTree.getCheckedNodes();
						if (checkObjects.length != 1) {
							_this.$message({ message: '请先选择一条记录', type: 'warning',duration:6000 });
							return;
						} else {
							_this.formdata.folderCode = checkObjects[0].currentNodeId;
							_this.formdata.folderName = checkObjects[0].currentNodeName;
							_this.chooseFolderDialogVisible = false;
						}
					},

					selectFolderCancelFn: function () {
						var _this = this;
						var checkObjects = this.$refs.refFolderTree.getCheckedNodes();
						for (var i = 0; i < checkObjects.length; i++) {
							this.$refs.refFolderTree.setChecked(checkObjects[i], false);
						}

						_this.chooseFolderDialogVisible = false;
					},

					/**
					 * 点击树的结点，加载对应的数据
					 */
					nodeClickFn: function (nodeData, node, self) {
						var _this = this;
						_this.currentClickNode = nodeData;

						_this.showDataList();



					},

					showDataList: function () {
						var _this = this;
						let appCode = "";
						let calendarCode = "";
						_this.isCalendarData = false;
						if (_this.currentClickNode.nodeType == 'A') {

							//_this.tableColumns[1].hidden = true;
							_this.appNameDisabled = true;
							_this.calendarNameDisabled = false;
							_this.searchFormdata.calendarName = "";
							_this.appCodeShow = false;
							_this.searchFormdata.appName = _this.currentClickNode.appName;
							appCode = _this.currentClickNode.appCode;
							_this.isDataAdd = false;
							// _this.isCalendarData = true;
							// _this.isCalendarData = false;
							// _this.getCalendarType(nodeData.appCode);
							//  _this.initCalendarData(nodeData.appCode,nodeData.currentNodeId);
						} else if (_this.currentClickNode.nodeType == 'D') {
							// _this.isCalendarData = false;
							_this.appCodeShow = false;
							//_this.tableColumns[1].hidden = true;
							_this.appNameDisabled = true;
							_this.calendarNameDisabled = true;
							_this.searchFormdata.appName = _this.currentClickNode.appName;
							_this.searchFormdata.calendarName = _this.currentClickNode.currentNodeName;
							appCode = _this.currentClickNode.appCode;
							calendarCode = _this.currentClickNode.currentNodeId.substring(2+appCode.length,_this.currentClickNode.currentNodeId.length );
							_this.isDataAdd = true;
						} else {
							_this.appCodeShow = true;
							//_this.tableColumns[1].hidden = false;
							//_this.appNameDisabled = false;
							_this.appNameDisabled = false;
							_this.searchFormdata.appName = "";
							_this.searchFormdata.calendarName = "";
							_this.isDataAdd = false;

						}

						//var paramObj = {};
						_this.searchFormdata.appCode = appCode;
						_this.searchFormdata.calendarCode = calendarCode;
						var param = { condition: JSON.stringify(_this.searchFormdata) };
						_this.$refs.refTable.remoteData(param);
					},

					handleSelect: function (key, path) {
						if (key === 'calendarInfo_add') {
							this.createTreeFn();
						} else if (key === 'calendarInfo_update') {
							this.updateTreeFn();
						} else if (key === 'calendarInfo_delete') {
							this.deleteTreeFn();
						} else if (key === "calendarType") {
							this.setCalendarType();
						}

					},

					reCalendarBack: function () {
						this.isCalendarData = false;
					},

					/** select year for current */
					iniCurrentSelectYear: function () {
						const _this = this;
						if (_this.selectYear == null || _this.selectYear === '') {
							_this.$message({ message: "年份不能为空", type: "warning" });
							return;
						}
						if (_this.initType == null || _this.initType === '') {
							_this.$message({ message: "初始化类型不能为空", type: "warning" });
							return;
						}

						_this.signDatas.splice(0);
						_this.defaultShowMonth();
						const paramObj = { yearValue: _this.selectYear, initType: _this.initType };

						yufp.service.request({
							method: 'GET',
							url: "api/use/plats/calendar/initCalendarData",
							data: paramObj,
							callback: function (code, message, response) {
								if (response.code == 0) {
									//_this.$message( "操作成功");
									_this.signDatas.splice(0);
									for (let i = 0; i < response.data.length; i++) {
										_this.signDatas.push(response.data[i]);
									}
									// _this.calendarTypeVisible = false;
								} else {
									_this.$message(response.message);
								}
							}
						});

					},

					/*初始化日历*/
					defaultShowMonth: function () {

						let year;
						if (this.selectYear == null || this.selectYear === '') {
							year = new Date().getFullYear();
							this.selectYear = year;
						} else {
							year = this.selectYear;
						}

						this.showDateMonths.splice(0);
						for (let i = 0; i < 12; i++) {
							this.showDateMonths.push(new Date(year, i));
						}

					},

					saveCalendarData: function () {

						var _this = this;
						let paramObj;
						if (this.yeaOprReadOnly) {
							paramObj = {
								appCode: _this.selectObj.appCode,
								calendarCode: _this.selectObj.calendarCode,
								useCalendarDatas: _this.$refs.xcalender.getData()
							};
						} else {
							var appCode = _this.currentClickNode.appCode
							var calendarCode =  _this.currentClickNode.currentNodeId.substring(2 + appCode.length,_this.currentClickNode.currentNodeId.length);

							paramObj = {
								appCode: appCode,
								calendarCode: calendarCode,
								useCalendarDatas: _this.$refs.xcalender.getData()
							};

						}


						yufp.service.request({
							method: 'POST',
							url: "api/use/plats/calendar/addUseCalendarDatas",
							data: paramObj,
							callback: function (code, message, response) {
								if (response.code == 0) {
									_this.showDataList();
									_this.$message("操作成功");
								} else {
									_this.$message(response.message);
								}
							}
						});

					},

					resetCalendar: function () {
						this.selectYear = "";
						this.initType = "";
					}

				},

			});
		};
	});
